package com.shanjupay.merchant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shanjupay.merchant.entity.Merchant;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author xiaoman
 * @since 2021-06-20
 */

@Repository
public interface MerchantMapper extends BaseMapper<Merchant> {

    @Select(value = "SELECT * FROM merchant m WHERE m.`MOBILE` = #{MOBILE}")
    Merchant findByMobile(@Param("MOBILE") String phone);
}
